﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;

namespace WT
{
    public partial class TabWell2 : Page
    {
        public TabWell2()
        {
            InitializeComponent();
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

        private void id_wellTextBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
        {
        	//wtdt_tab_wellDomainDataSource.Load();
        }

        private void yearTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            //wtdt_tab_wellDomainDataSource.Load();
        }

        private void wTDV_TAB_WELLDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e)
        {
			gridControl1.GroupBy("MONTH_PARAM");
            if (e.HasError)
            {
                System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK);
                e.MarkErrorAsHandled();
            }
        }

        private void id_wellTextBox_TextChanged_1(object sender, TextChangedEventArgs e)
        {
            //wTDV_TAB_WELLDomainDataSource.Load();
        }

        private void wTDV_TAB_WELL_ND_MONTH_DATADomainDataSource_LoadedData(object sender, LoadedDataEventArgs e)
        {

            if (e.HasError)
            {
                System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK);
                e.MarkErrorAsHandled();
            }
        }

        private void wTDV_TAB_WELLDomainDataSource1_LoadedData(object sender, LoadedDataEventArgs e)
        {

            if (e.HasError)
            {
                System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK);
                e.MarkErrorAsHandled();
            }
        }

    }
}
